package ccrClasses.layer1.vitalSigns;

import java.util.ArrayList;
import java.util.List;

import ccrClasses.CCR;
import ccrClasses.ICcr;
import ccrClasses.layer1.results.Result;

public class VitalSigns extends CCR implements ICcr {
	
	public static final String OPEN_TAG = "<Results>";

	public static final String CLOSE_TAG = "</Results>";
	
	private List<Result> results;
	
	public VitalSigns(){
		super();
		setResults(new ArrayList<Result>());
	}

	@Override
	public String constructCcrString() {
		String ccr = BASE_OPEN_TAG + BODY_OPEN_TAG + OPEN_TAG;
		for(Result i: results){
			ccr = ccr + i.constructCcrString();
		}
		
		ccr = ccr + CLOSE_TAG + BODY_CLOSE_TAG + BASE_CLOSE_TAG;
		return ccr;
	}

	/**
	 * @param results the results to set
	 */
	public void setResults(List<Result> results) {
		this.results = results;
	}

	/**
	 * @return the results
	 */
	public List<Result> getResults() {
		return results;
	}

}
